<?php
/**
 * Builds left menu in admin area when editing product template
 * 
 * @author Konstantin Shamko <konstantin.shamko@gmail.com> 
 * @version 0.0.1
 * @copyright  Copyright (c) 2009 Konstantin Shamko
 * @package Products Module
 * @license  New BSD License
 *
 */
class Helpers_Products_Admin_TemplatesMenu{
	
	/**
	 * Builds left menu in admin area when editing product template
	 *
	 * @param integer $template_id
	 */
	public static function leftMenu($template_id){
		
		$menu = array(
			array('title'=>'Edit Template','url'=>'/admin/producttemplates/form/product_template_id/'.$template_id),
			array('title'=>'Template Attributes','url'=>'/admin/producttemplatesattr/index/product_template_id/'.$template_id)
		);
		
		$view = Zend_Registry::get('view');
		$view->assign('sidemenu',$menu);		
	}	
}
